def size(obj):
    if isinstance(obj,str):
     return len(obj)
    if isinstance(obj,list):
       return len(obj)
    if isinstance(obj,tuple):
       return len(obj)
    else:
       print("输入的不是有效的字符串，元组，列表")

     